package com.woniu.been.entity.vo;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseTreeVO {
    private Integer categoryId;
    private String categoryName;
    private String imgSrc;
    private List<SubCategoryVO> subCategories;
    
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SubCategoryVO {
        private Integer categoryId;
        private String categoryName;
        private String imgSrc;
        private List<ChapterVO> chapters;
    }
    
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ChapterVO {
        private Integer chapterId;
        private String chapterName;
        private Integer isFree;
        private List<CourseVO> courses;
    }
    
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CourseVO {
        private Long courseId;
        private String courseName;
        private String courseType;
        private Double price;
        private String description;
        private String imgsrc;
    }
} 